<h1><span></span><?= lang('label_subscriber').' ('.  count($subscribers).')'  ?></h1>

<ul class="breadcrumb">
    <li><a href="<?= base_url() ?>"><?= lang('label_home') ?></a></li>
    <li><a href="<?= base_url("store") ?>"><?= lang('label_menu_link_mystore') ?></a></li>
    <li><?= lang('label_subscriber') ?></li>
</ul>


<div class="page">
    <?php if (count($subscribers) > 0) { ?>
        <table id="tablestyle2">
            <thead>
                <tr>
                    <th><?= lang('label_email') ?></th>
                    <th><?= lang('label_operation') ?></th>
                </tr>
            </thead>

            <tbody>
                <?php foreach ($subscribers as $sub){ ?>
                <tr>
                    <td><?= $sub->email ?></td>
                    <td><a href="<?= base_url("store/unsubscribe/$sub->store_id/$sub->user_id") ?>"><?= lang('label_remove_from_list') ?></a></td>
                </tr>
                <?php } ?>
            </tbody>
        </table>
    <?php } else { ?>
        <div class="unsaved">
            <img src="<?php echo str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']) ?>/<?php echo APPPATH ?>views/<?php echo $this->themes->Cms_themes() ?>/images/unsaved.png" alt="" />
            <br /><?= lang('message_dont_have_subscribers') ?>
        </div>
        <br /><br /><br /><br />
    <?php } ?>
</div>
